﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimulationPresenter.Presentation.Primitives;

namespace SimulationPresenter.Presentation.Helpers
{
    static internal class PresentationPrimitiveHelper
    {
        ///// <summary>
        ///// Changes color of the Box to one set
        ///// </summary>
        //public static void Recolor(this IPresentationPrimitive primitive)
        //{
        //    //try
        //    //{
        //    //    for (int i = 0; i < primitive.VerticesWithNormal.Length; i++)
        //    //    {
        //    //        primitive.VerticesWithNormal[i].Color = primitive.Color.ToArgb();
        //    //    }
        //    //}
        //    //catch (NotSupportedException)
        //    //{
        //    //    if (null == primitive.Vertices)
        //    //    {
        //    //        throw new InvalidOperationException("There are no vertices defined to recolor");
        //    //    }
        //    //    for (int i = 0; i < primitive.Vertices.Length; i++)
        //    //    {
        //    //        primitive.Vertices[i].Color = primitive.Color.ToArgb();
        //    //    }
        //    //}
        //}
    }
}
